package cn.com.bsoft.ws.service;

import cn.com.bsoft.ws.entity.UserBase;
import com.alibaba.fastjson.JSONObject;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import javax.jws.WebService;

/**
 * @Author: ls
 * @Date: 2020/1/2 15:38
 */
@WebService(serviceName = "demoServiceImpl", targetNamespace = "http://service.ws.bsoft.com.cn/", endpointInterface = "cn.com.bsoft.ws.service.DemoService")
//@WebService(serviceName = "dfyyhisorder"//服务名
//        ,targetNamespace = "http://service.netbar.temple.xiaojf.cn"//报名倒叙，并且和接口定义保持一致
//        ,endpointInterface = "cn.xiaojf.temple.netbar.service.NetbarServices")//包名
@Component
public class DemoServiceImpl implements DemoService {
    @Resource
    private UserBaseService userBaseService;

    public DemoServiceImpl() {
    }

    @Override
    public String querys(String jsonpObject) {
        UserBase userBase=userBaseService.getById(1);
        return JSONObject.toJSON(userBase).toString();
    }
}
